#ifndef CONVERSION_H
#define CONVERSION_H

#include <QtCore>
#include <defs/global.h>
namespace Utils{

    class Conversion{
    public:
        static QVariant rectFToVariant(const QRectF& rect);
        static QVariant rectToVariant(const QRect& rect);

        static QRect variantToRect(const QVariant& v);
        static QRectF variantToRectF(const QVariant& v);

        static QPoint variantToPoint(const QVariant& v);
        static QPointF variantToPointF(const QVariant& v);

        static QVariant pointFToVariant(const QPointF& point);
        static QVariant pointToVariant(const QPoint& point);

        static QSize variantToSize(const QVariant& v);
        static QSizeF variantToSizeF(const QVariant& v);

        static QVariant sizeFToVariant(const QSizeF& point);
        static QVariant sizeToVariant(const QSize& point);

    };
}

#endif // CONVERSION_H
